<?php

namespace app\admin\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        //'title' => 'require|unique:cate',
        'title' => 'require',
        //'type' => 'require'
    ];

    protected $message = [
        'title.require' => '名称不能为空',
        //'title.unique' => '名称已存在',
        //'type.require' => '类型不能为空',
    ];

   
}